define('route', ['angular'], function (angular) {
    var module = angular.module('app');
    module.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {             //设置默认访问路由 
        $urlRouterProvider.otherwise("/default");
        $stateProvider.state('default', {
            url: "/default",
            templateUrl: 'view/home.html',
            controller: 'homeController'
        });
    }]);
});
